package com.xinfu.newproject.util;

import android.text.TextUtils;

import java.util.List;

public class NoticeEvent {
    private String cls;
    private Object data;
    private int tag;
    private List<String> list;

    public List<String> getList() {
        return list;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public NoticeEvent(String cls) {
        this.cls = cls;
    }

    public NoticeEvent(String cls, Object data) {
        this.cls = cls;
        this.data = data;
    }

    public NoticeEvent(String cls, List<String> list) {
        this.cls = cls;
        this.data = data;
    }

    public NoticeEvent(String cls, Object data, int tag) {
        this.cls = cls;
        this.data = data;
        this.tag = tag;
    }

    public int getTag() {
        return tag;
    }

    public void setTag(int tag) {
        this.tag = tag;
    }

    public String getCls() {
        return cls;
    }

    public Object getData() {
        return data;
    }

    public boolean equals(String cls) {
        return !TextUtils.isEmpty(this.cls) && this.cls.equals(cls);
    }
}
